package com.dashu.base.enums.common;


import java.util.HashMap;
import java.util.Map;

public enum UserType {

    SUPERTUBE("超管",1),
    ONE_OPERATORS("运营",2),
    CAMPUS("学校",3),
    PARK("园区",4);


    private String name;
    private long code;

    UserType(String name, long code) {
        this.name = name;
        this.code = code;
    }

    public static final Map<String, UserType> map = new HashMap<>();

    static {
        for (UserType s : UserType.values()) {
            map.put(s.name(), s);
        }
    }

}
